import request from '@/utils/request';

export async function getProductDrawingInfoByPage (params: any) {
    return request('/api/design/getProductDrawingInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addProductDrawingInfo (params: any) {
    return request('/api/design/addProductDrawingInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateProductDrawingInfo (params: any) {
    return request('/api/design/updateProductDrawingInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delProductDrawingInfo (params: any) {
    return request('/api/design/delProductDrawingInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportProductDrawingInfo(params: any) {
    return request('/api/design/exportProductDrawingInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getProductDrawingInfoByPage, addProductDrawingInfo, updateProductDrawingInfo, delProductDrawingInfo, exportProductDrawingInfo }
